package com.iweb.service;

import com.iweb.mapper.NoticeMapper;
import com.iweb.pojo.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImp implements NoticeService {

    @Autowired
    NoticeMapper noticeMapper;

    @Override
    public void insert(Notice notice) {
        noticeMapper.insert(notice);
    }

    @Override
    public List selectList() {
        return noticeMapper.selectList(6);
    }
}
